<?php

$jige=75;

$css = 81;
$js = 80;
$wy = 86;
$avg = ($css + $js + $wy )/3;
/*
echo "平均分的及格线=$jige</br>";
echo "样式表=$css <br/>";
echo "网页设计=$wy <br/>";
echo "JS=$js <br/>";
echo "你的平均分=$avg <br/>";
echo "你的分数:";

if ($avg >=$jige){
    echo "及格";
}else {
    echo "不及格";
    
}*/
?>
 




<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
    <p>eee</p>
    平均分的及格线=<?php    echo $jige; ?></br>
    样式表=<?php    echo $css; ?></br>
    网页设计<?php    echo $wy; ?></br>
    js<?php    echo $js; ?></br>
    你的平均分=<?php    echo $avg; ?></br>
    你的分数：<?php    if ($avg >=$jige):?>
    <span style="color: green"> 及格</span>
     <p> 及格</p>
    <?php else: ?>
    <p>不及格</p>
    <?php endif; ?>
    
    
</body>
</html>
